package org.sith.taskrunner.ejb.transformers;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.sith.taskrunner.api.exceptions.TransformInputDataException;
import org.sith.taskrunner.api.transformer.InputDataTransofrmer;
import org.sith.taskrunner.temp.tasks.distribution.NormalDistributionInputData;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;

public class NormalDistributionXMLTransformer extends AbstractNormalAndSumXMLDataTransformer implements
		InputDataTransofrmer<NormalDistributionInputData, InputStream> {

	@Override
	public NormalDistributionInputData transform(InputStream inputData)
			throws TransformInputDataException {
		List<Double> sequence = getResultSequence(inputData);
		return new NormalDistributionInputData(sequence);

	}

}
